package com.ufox.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ufox.entity.Orders;
import com.ufox.entity.Result;
import com.ufox.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ufox.req.PasswordREQ;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-06-09
 */
public interface IUserService extends IService<User> {

    /**
     * 校验原密码是否正确
     * @param req
     * @return
     */
    Result checkPassword(PasswordREQ req);
    /**
     * 更新修改后的新密码
     * @param req
     * @return
     */
    Result updatePassword(PasswordREQ req);

    Result regist(User user);

    void updateUserByCode(String statecode);

    List<Orders> getOrdersByUserId(String userId );

    Result getCustOrdersByUserId(String userId);
}
